home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / MPButtons / Script Button Example < prev   
Encoding:
Text File  |  1996-06-17  |  711 b   |  20 lines  |  [TEXT/MPS ]

  1. Script Button Example
  2. =====================
  3. This part of text is never executed since it's located BEFORE the first #MPB AREA command...
  4.  
  5. #MPB AREA 0
  6.     echo "The upper-part was clicked with no modifiers;"
  7. #MPB MODIFS Command-Option
  8. #MPB SHORTCUT Command-Option-A
  9.     echo "Either the upper-part was Command-Option-clicked"
  10.      echo "or the shortcut Command-Option-A was pressed;"
  11.  
  12. #MPB AREA 1
  13.     echo "The lower-part was clicked with no modifiers;"
  14.     echo "but also the part of script related to Command-Option-S shortcut is executed"
  15.     echo "as you can see:"
  16. #MPB SHORTCUT Command-Option-S
  17.      echo "The shortcut Command-Option-S was pressed;"
  18. #MPB MODIFS Command-Option
  19.     echo "The lower-part was Command-Option-clicked;"
  20.